/*
*  CS202 - Spring 2009">
*  Professor: Dr. Michael Peterson">
*  Student: Deylo Woo (dwoo711@gmail.com) ">
*/

package project_4;

import javax.swing.*;

public class Card {
    public enum Status {

        faceUp, faceDown
    }

    private Card _cardB;
    private JButton _jbutton;//reference to pair
    private int _gridPos;
    private Status _status;

    public Card(String name){
        _jbutton = new JButton(name);
    }
    /**
     * @return the _cardB
     */
    public Card getCardB() {
        return _cardB;
    }

    /**
     * @param cardB the _cardB to set
     */
    public void setCardB(Card cardB) {
        this._cardB = cardB;
    }

    /**
     * @return the _jbutton
     */
    public JButton getJbutton() {
        return _jbutton;
    }

    /**
     * @param jbutton the _jbutton to set
     */
    public void setJbutton(JButton jbutton) {
        this._jbutton = jbutton;
    }

    /**
     * @return the _gridPos
     */
    public int getGridPos() {
        return _gridPos;
    }

    /**
     * @param gridPos the _gridPos to set
     */
    public void setGridPos(int gridPos) {
        this._gridPos = gridPos;
    }

    /**
     * @return the _status
     */
    public Status getStatus() {
        return _status;
    }

    /**
     * @param status the _status to set
     */
    public void setStatus(Status status) {
        this._status = status;
    }

}
